package com.lancoo.znbkxx.teacher.aibkTestCoach.paperToEvaluation.aibkEvalutionZHT

import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseFragment
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.PaperEvaluationInfor
import kotlinx.android.synthetic.main.aibk_adapter_parent_xzt.view.*

/**
 * auther: 王国龙
 *  Date：2020.05.18
 * describe:综合题（一般匹配）
 */
class EvaluationFragmentParentPpt(
        val activity: AppCompatActivity,
        val paperEvaluationInfor: PaperEvaluationInfor,
        val index_A: Int,
        val index_B: Int,
        val index_C: Int,
        val index_D: Int
) : KBaseFragment() {

    private var rootView: View? = null

    override fun createLayout(): Int {
        return R.layout.aibk_adapter_parent_xzt
    }

    override fun initView(view: View?) {
        rootView = view

        var manager = LinearLayoutManager(activity)
        manager.orientation = LinearLayoutManager.VERTICAL
        rootView!!.RvChoice.layoutManager = manager
        val mAdapter = EvaluationAdapterChildPpt(activity, paperEvaluationInfor, index_A, index_B, index_C,index_D)
        rootView!!.RvChoice.adapter = mAdapter
    }

}